home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
TSR
/
PPTSR10
/
BEEPER.PAS
next >
Wrap
Pascal/Delphi Source File
|
1993-02-12
|
731b
|
42 lines
(*
Program : beeper.pas
Function : Example TSR program. Beeps when hotkey is hit.
From : DOS International, June 1992
Modified : P.Peters
Date : June 1992
*)
{$m $1000,0,0}
{$r-,s-,x+}
uses crt,tsr;
procedure beeper; far;
var i : byte;
begin
for i := 1 to 8 do begin
sound(300*i);
delay(20);
nosound;
end;
end;
procedure dummy; far;
begin
end;
procedure paramcheck; far;
begin
writeln('Invalid switch or parameter');
writeln;
writeln('Usage:');
writeln(' Beeper [Option]');
writeln('Options:');
writeln(' /u : Remove Tsr');
halt;
end;
begin
writeln('BEEPER TSR-testprogram'^m^j);
tsrinstall('Alt-F',$2100,$c1,beeper,dummy,paramcheck);
end.